package com.drink.yan.svc.service;

import com.drink.yan.core.mapper.YanBiMapper;
import com.drink.yan.core.mapper.YanMockExamsMapper;
import com.drink.yan.intf.vo.*;
import com.drink.yan.web.rest.req.qry.*;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * java类简单作用描述
 *
 * @Title:
 * @Package: com.drink.yan.svc.service.
 * @Author: M.simple
 * @Remark: The modified content
 * @CreateDate: 2023-12-19 14:29
 * @Version: v2.0
 */
@Service
public class BiService {

	@Resource
	private YanBiMapper yanBiMapper;

	@Resource
	private YanMockExamsService yanMockExamsService;

	public BiSaleDataVo summarySaleData(BiDataQry qry) {


		return yanBiMapper.summarySaleData(qry);
	}

	public BiAgencyDataVo summaryAgencyData(BiDataQry qry) {

		return yanBiMapper.summaryAgencyData(qry);
	}

	public List<BiSchoolAgencyDataVo> agencySchoolData(BiDataQry qry) {

		return yanBiMapper.agencySchoolData(qry);
	}

	public List<BiAgencyAmountVo> agencyList(BiPageAgencyQry qry) {

		return yanBiMapper.agencyList(qry);
	}

	public List<BiTeacherSaleDataVo> saleData(BiDataQry qry) {
		return yanBiMapper.saleData(qry);
	}

	public List<BiSchoolAgencyDataVo> agencyCounselorData(BiDataQry qry) {

		return yanBiMapper.agencyCounselorData(qry);
	}

	public List<BiSchoolAgencyDataVo> agencyData(BiDataQry qry) {

		return yanBiMapper.agencyData(qry);
	}

	public BiCounselorSummaryVo summaryCounselor(BiPageAgencyQry qry) {

		return yanBiMapper.summaryCounselor(qry);
	}

	public List<BiCounselorStudentVo> counselorStudentList(BiCounselorStudentQry qry) {
		return yanBiMapper.counselorStudentList(qry);
	}

	public BiCounselorStudentSummaryVo counselorStudentSummary(BiCounselorStudentQry qry) {
		return yanBiMapper.counselorStudentSummary(qry);
	}

	public List<BiMockCountDataVo> summaryMock(BiMockQry qry) {
		Long year = yanMockExamsService.maxYear();
		qry.setYear(year);
		return yanBiMapper.summaryMock(qry);
	}

	public List<BiMockCountDataVo> summaryMockSegment(BiMockSegmentQry qry) {
		Long year = yanMockExamsService.maxYear();
		qry.setYear(year);
		return yanBiMapper.summaryMockSegment(qry);
	}
}
